package com.hl.ruoyicsmshop.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface ProductStatisticsMapper {
    /**
     * 按订单数量统计商品销售数据
     */
    List<Map<String, Object>> getProductStatisticsByQuantity(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    /**
     * 按销售金额统计商品销售数据
     */
    List<Map<String, Object>> getProductStatisticsByAmount(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);
}